//
//  HD_LY_DownloadManager.h
//  HDShenYangIndustrialMuseum
//
//  Created by liuyi on 2017/3/11.
//  Copyright © 2017年 hengdawb. All rights reserved.
//

/*
 版本：V1.1
 开发者：刘毅
 更新时间：2017-05-23
 功能描述：zip资源文件下载（数据库下载、整包资源、单包资源、地图资源）
*/

#import <Foundation/Foundation.h>
#import "HSDownloadManager.h"

//资源路径
#define CachePath  [NSSearchPathForDirectoriesInDomains(NSCachesDirectory,NSUserDomainMask, YES) objectAtIndex: 0]

typedef enum
{
    kDownload_Tpye_Sqlite = 1,
    kDownload_Tpye_AllRes,
    kDownload_Tpye_OneRes,
    kDownload_Tpye_MapRes,
    
}Download_Type;//下载类型

typedef enum {
    kDownloadStateStart = 0,     /** 下载中 */
    kDownloadStateSuspended,     /** 下载暂停 */
    kDownloadStateCompleted,     /** 下载完成 */
    kDownloadStateFailed         /** 下载失败 */
}Download_State;

@interface HD_LY_DownloadManager : NSObject

@property (nonatomic, assign) Download_Type   myDownloadType;
@property (nonatomic, assign) Download_State  myDownloadState;

@property (nonatomic, strong) UIViewController *downloadingVC;//在哪个视图界面下载
@property (nonatomic, copy) void (^successBlock)();

- (void)myDownloadAction:(UIViewController *)VC withType:(Download_Type)type WithFileNo:(NSString *)fileNo;//下载方法
- (void)cancleDownload:(NSString *)url;//下载取消
- (void)cleanDownloder;//返回上一界面调用清理



@end

















